package com.micmac.main.controller
{
	/*
	
	Author : Roy Raul.
	
	Component : LoadResourceCommand.             
	
	Version History         : 0.1 Date Jul-20-2011
	
	Current Version         : 0.1 Date Jul-20-2011
	
	Build Date              : Jul-20-2011
	
	*/
	
	
	import com.micmac.main.interfaces.IStartupLocaleService;
	import com.micmac.main.interfaces.IStartupService;
	import com.micmac.main.interfaces.IStartupStylesheet;
	import com.micmac.main.mainmodel.interfaces.IStartupModel;
	
	import org.robotlegs.mvcs.Command;
	
	
	

	public class LoadResourceCommand extends Command
	{
		[Inject]
		public var startupMonitorModel:IStartupModel;
		
		[Inject]
		public var configService:IStartupService;
		[Inject]
		public var localeService:IStartupLocaleService;
		[Inject]
		public var styleSheetService:IStartupStylesheet;
		
		override public function execute():void
		{
			configService.register();
			localeService.register();
			//styleSheetService.register();
			startupMonitorModel.loadResources();
		}
	}
}